#ifndef STDAFX_H
#define STDAFX_H
#include <QString>
#include "pcap.h"

//arm的话改为"eth0"
//#if defined(__i386)
#define NETDEV  "以太网"
//#elif defined(__arm__)
//    #define NETDEV  "eth0"
//#endif

#define TONGDAOCOUNT 12 //通道数
//#define ZHOUQI 10       //周期
#define YI_TAI_WANG_START_MAX 25
#define GuiYue9_1 "9-1"		// 规约 9-1 名称
#define GuiYue9_2 "9-2LE"		// 规约 9-2LE 名称
#define GuiYue_Goose "Goose"		// 规约 Goose 名称
#define NotEthernet "非以太网数据"	// 非以太网数据
#define PI 3.1415927
const int TongDaoCount91 = 12;			// 规约 9-1 所包含通道数
const int TestChannel_LuBo = -1;			// 将测量通道赋予此值表示非测量状态
const int TestChannel_PinLv = -2;		// 频率测量时，测量通道设置值
//class MainWindow;
//enum class ReturnType{ Success, Fail, Wrong};
enum ReturnType{ Success, Fail, Wrong};
//void PaintBackgroundColor(System::Drawing::Graphics^  g,
//                                                  System::Drawing::Color c = System::Drawing::Color::FromArgb(109, 162, 240),
//                                                  System::Drawing::Drawing2D::LinearGradientMode pos = System::Drawing::Drawing2D::LinearGradientMode::ForwardDiagonal);

// 判断给定Cos和Sin的值，经过Atan后的值在第几象限 -CC
int GetXiangXian(double, double);
double GetXiangJiao(double, double);
QString getNetDescription(QString sDescription);
QString getHexFormat(int iValue);

class Smpcnt_Num{
public:
        Smpcnt_Num(int iSmpcnt, int iNum)
        {
                Smpcnt = iSmpcnt;
                ShuZiLiang = iNum;
        }
        int getSmpcnt(){return Smpcnt;}
        int getShuZiLiang(){return ShuZiLiang;}
private:
        int Smpcnt;			// SmpCnt 值 -CC
        int ShuZiLiang;		// 数字量 -CC
};

enum  CTestStatus{
        tsNoneAction,	// 无动作 -CC
        tsTestManul,	// 手动测量 -CC
        tsTestAuto		// 自动测量 -CC
};

enum CTestItem{
        tiNormal,		// 常规测量 -CC
        tiRepeat		// 重复性测量 -CC
};
class StdAfx
{
public:
    StdAfx();
};

#endif // STDAFX_H
